<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	body{font-size:12px;text-align:center;}
	.clsFrame{width:300px;height:100px}
	.clsFrame div,span{display:none;float:left;width:65px;height:65px;border:solid 1px #ccc;margin:8px}
	.clsone{background-color:#eee}
</style>
<script type="text/javascript" src="../../js/jquery-2.1.1.min.js" ></script>
<script type="text/javascript">
	/*id选择器：根据给定的id匹配一个元素  */
	$(document).ready(function(){
		alert("demo");
		$("#divOne").css("display","block");
	});
	/* 类选择器：根据给定类名匹配所有元素，类名可以用空格隔开 */
	$(document).ready(function(){
		$(".clsFrame .clsOne").css("display","block");
	});
	/*元素选择器： 根据给定的元素名称匹配所有元素 */
	$(document).ready(function(){
		$("div span").css("display","block");
	});
	/* 多选择器匹配：id选择器、类选择器、元素选择器用逗号隔开 */
	$(document).ready(function(){
		$("#divOne,span").css("display","block");
	});
	/* 匹配所有元素 */
	$(document).ready(function(){
		$("*").css("display","block");
	});
</script>
</head>
<body>
	<div class="clsFrame">
		<div id="divOne">ID</div>
		<span>span0</span>
		<div class="clsOne">CLASS</div>
		<span>SPAN1</span>
		<span>Span2</span>
	</div>
</body>
</html>